<?php

namespace System\Model;

class Videos {

    public $videoId;
    public $videoName;
    public $videoDescription;
    public $videoLink;
    public $videoImg;
    public $videoContent;
    public $videoDatePost;
    public $videoDateUpdate;
    public $videoActive;
    public $videoImgThumb;

    public function exchangeArray($data) {
        $this->videoId = (isset($data["videoId"])) ? $data["videoId"] : null;
        $this->videoName = (isset($data["videoName"])) ? $data["videoName"] : null;
        $this->videoDescription= (isset($data["videoDescription"])) ? $data["videoDescription"] : null;
        $this->videoLink = (isset($data["videoLink"])) ? $data["videoLink"] : null;
        $this->videoImg = (isset($data["videoImg"])) ? $data["videoImg"] : null;
        $this->videoContent = (isset($data["videoContent"])) ? $data["videoContent"] : null;
        $this->videoDatePost = (isset($data["videoDatePost"])) ? $data["videoDatePost"] : null;
        $this->videoDateUpdate = (isset($data["videoDateUpdate"])) ? $data["videoDateUpdate"] : null;
        $this->videoActive = (isset($data["videoActive"])) ? $data["videoActive"] : null;
        $this->videoImgThumb = (isset($data["videoImgThumb"])) ? $data["videoImgThumb"] : null;
    }

}
